html,
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100%;
  font-family: "Poppins", sans-serif;
  height: 100vh;
  /* background: url("../IMAGES/vms_bg.png") no-repeat center center / cover; */
  overflow: hidden;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.hidden {
  visibility: hidden;
  height: 0;
}


.login-logo {
  /* background: url("IMAGES/logo.png") no-repeat center center; */
  background-size: contain;
  width: 130px;
  height: 130px;
  position: absolute;
  top: 20px;
  right: 20px;
}

.heading {
  color: #007f64;
  /* color: darkgreen; */
  font-size: 0.9em;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  right: 160px;
}

.heading span {
  color: black;
  font-size: 1.3em;
}

/* #f2f2f2 */

.logo-container {
  display: flex;
  justify-content: space-between;
}


.login_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* width: 1000px; */
  height: max-content;
  margin: auto;
  padding: 20px;
  /* border: 1px solid #ddd; */
  border-radius: 10px;
  /* box-shadow: 0px 30px 10px rgba(0, 0, 0, 0.5); */
  background-color: #d0cff1;
}

/* Flexbox for image and content */
.content_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  width: 100%;
  
}

/* Image styling */
.login_image img {
  width: 500px;
  height: 300px;
  border-radius: 10px;
}

.login_content {
  /* border-left: 2px white solid; */
  position: relative;
  /* left: 0px; */
  /* bottom: 45px; */
  top: 0;
}


/* .login-form {
  display: flex;
  flex-direction: column;
} */

.title {
  text-align: center;
  font-size: 1.5em;
  color: black;
  font-weight: bold;
  margin-bottom: 20px;
}

.user-role {
  display: flex;
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.user-role label {
  font-weight: bold;
  color: black;
}

/* .role-options {
  display: flex;
  justify-content: space-between;
  gap: 20px;
} */

.role-options input {
  accent-color: #007f64;
}

.role-options label {
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.role-options label:hover {
  color: #007f64;
}

.useremail-label,
.username-label,
.pass-label {
  font-weight: bold;
  color: black;
  font-size: 16px;
}

.username,
.email,
.password {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #f2f2f2;
  /* border: none; */
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.username:focus,
.email:focus,
.password:focus {
  border: 2px solid;
  border-color: #007f64;
  outline: none;
}

/* Ensure password container remains aligned */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Ensure input and button are aligned */
.password-container input {
  width: 100%;
  padding-right: 40px;
  height: 40px; 
}

.password-container button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}


.login-btn {
  background-color: #007f64;
  color: white;
  width: 50%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  margin-top: 20px;
  margin-bottom: 0;
  margin-left: 65px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.login-btn:hover {
  background-color: #005e48;
  transform: translateY(-2px);
}

.login-btn:active {
  transform: translateY(1px);
}

.username_container {
  display: none;
  margin-top: 10px;
}

/* @media (max-width: 768px) {
  .login_container {
    padding: 30px;
    width: 90%;
  }

  .heading {
    font-size: 1.5em;
  }

  .role-options {
    flex-direction: column;
    gap: 10px;
  }
} */


@media (min-width: 1025px) {
  .container {
    flex-direction: row;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    flex-direction: column;
  }

  .login-img {
    height: 40vh;
  }

  .content {
    max-width: 90%;
  }
}

@media (max-width: 767px) {
  .container {
    flex-direction: column;
  }

  .login-img {
    display: none;
  }

  .content {
    padding: 10px;
    max-width: 100%;
  }

  .login_container {
    width: 90%;
    flex-direction: row;
    padding: 10px;
    bottom: 10%;
  }

  .login-logo {
    width: 130px;
    height: 130px;
  }

  .username,
  .password {
    width: 80%;
  }

  .heading {
    font-size: 1.1em;
    margin-top: 50px;
    left: 10px;
    top: 0;
  }

  .vertical-line {
    display: block;
  }

  .login-btn {
    width: 50%;
    margin: 10px 0;
  }
}

/* Existing styles here */
.alert {
  padding: 10px;
  margin: 10px 0;
  margin-top: 0;
  border-radius: 5px;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}


/* Media Queries */
@media (max-width: 1024px) {
  .login_container {
    
    width: 90%;
    padding: 15px;
  }

  .heading {
    font-size: 1.2em;
    margin-bottom: 20px;
    position: static; /* Reset position for better alignment */
  }

  .login-logo {
    width: 100px; /* Adjust logo size */
    height: 100px; /* Adjust logo size */
    top: 10px; /* Adjust position */
    right: 10px; /* Adjust position */
  }

  .content_wrapper {
    flex-direction: column; /* Stack content vertically */
    gap: 20px; /* Adjust gap */
  }

  .login_image img {
    width: 100%; /* Make image responsive */
    height: auto; /* Maintain aspect ratio */
  }

  .login_container {
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center align */
  }

  .user-role {
    flex-direction: column; /* Stack role options vertically */
    align-items: flex-start; /* Align to the start */
  }

  .login-btn {
    width: 80%; /* Make button responsive */
    margin-left: 0; /* Reset margin */
  }
}

@media (max-width: 767px) {
  .login_container {
    width: 95%; /* Full width on small screens */
    padding: 10px; /* Adjust padding */
  }

  .heading {
    font-size: 0.6em; /* Adjust font size */
    margin-top: 20px; /* Adjust margin */
  }

  .login-logo {
    width: 80px; /* Further adjust logo size */
    height: 80px; /* Further adjust logo size */
  }

  .login_image {
    display: none; /* Hide image */
  }

  .login_content {
    bottom: 0; /* Reset position */
  }

  .username,
  .password {
    width: 90%; /* Adjust input width */
  }

  .login-btn {
    width: 100%; /* Full width button */
    margin: 10px 0; /* Adjust margin */
  }
}